package com.desaysv.wandroid.http;

import com.desaysv.svhttp.anno.GET;
import com.desaysv.svhttp.anno.Path;
import com.desaysv.svhttp.callback.IRequestCallBack;
import com.desaysv.wandroid.entity.BannerEntity;
import com.desaysv.wandroid.entity.BaseRes;

import java.util.List;

/**
 * @author linzi
 * @date 2022-11-11
 */
public interface WAndroidService {
    @GET(path = "/article/list/{page}/json")
    void getArticleList(@Path(key = "page") int page, IRequestCallBack callBack);
    @GET(path = "/banner/json")
    void getBanner(IRequestCallBack<BaseRes<List<BannerEntity>>> callBack);
    @GET(path = "/article/top/json")
    void getTopAirtics(IRequestCallBack callBack);
}
